package rs.fon.is.music.domain;

import java.util.Date;

import rs.fon.is.music.util.Constants;
import thewebsemantic.Namespace;
import thewebsemantic.RdfProperty;
import thewebsemantic.RdfType;

@Namespace(Constants.SCHEMA)
@RdfType("Event")
public class Event extends Thing {
	
	@RdfProperty(Constants.SCHEMA + "startDate")
	private Date startDate;
	
	@RdfProperty(Constants.SCHEMA + "endDate")
	private Date endDate;
	
	@RdfProperty(Constants.SCHEMA + "location")
	private Place location;

	public Date getStartDate() {
		return startDate;
	}

	public void setStartDate(Date startDate) {
		this.startDate = startDate;
	}

	public Place getLocation() {
		return location;
	}

	public void setLocation(Place location) {
		this.location = location;
	}
	
	public Date getEndDate() {
		return endDate;
	}

	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}

	@Override
	public String toString() {
		
		String s = "Event: " + getName()
				+ "\nURI: " + getUri() 
				+ "\nURL: " + getUrl() 
				+ "\nstartDate: " + getStartDate()
				+ "\nendDate: " + getEndDate()
				+ "\n" + getLocation();
		
		return s;
	}
	

}
